from django.shortcuts import render, HttpResponse
from util.tencent.sts_demo import send_secret_key
from django.conf import settings
from django.http import JsonResponse


# Create your views here.


def index(request):
    return render(request, 'app02/index2.html')


def send_key(request):
    dict = send_secret_key(settings.CONFIG)
    # print(dict)
    return JsonResponse(dict)
